---
import CopyButton from "./CopyExampleButton.astro";
import { GithubLinkButton } from "@/components/ui/custom/GithubLinkButton";

type Props = {
  githubUrl: string;
  codeToCopy: string;
};
const { githubUrl, codeToCopy } = Astro.props;
---

<div class="flex flex-col md:flex-row md:items-center md:gap-3">
  <CopyButton toCopy={codeToCopy} />
  <GithubLinkButton client:load href={githubUrl} />
</div>
